function FindProxyForURL(url, host) {
	var direct="DIRECT";
	var proxies = "PROXY 172.17.31.2:8080; PROXY 172.17.31.1:8080; DIRECT";

	if(isInNet(host, '172.16.0.0', '255.240.0.0')
	    || isInNet(host, '192.168.0.0', '255.255.0.0')
	    || isInNet(host, '10.0.0.0', '255.0.0.0'))
	{
		return direct;
	}

	if(shExpMatch(url, '*.pacaterie.u-psud.fr/*')
	    || shExpMatch(url, '*.pacaterie.u-psud.fr:*')
	    || shExpMatch(url, '*.rub.u-psud.fr/*')
	    || shExpMatch(url, '*.rub.u-psud.fr:*')
	    || shExpMatch(url, '*.fleming.u-psud.fr/*')
	    || shExpMatch(url, '*.fleming.u-psud.fr:*')
	    || shExpMatch(url, '*.flemnet.fr/*')
	    || shExpMatch(url, '*.flemnet.fr:*')
	    || shExpMatch(url, '*.ile.u-psud.fr/*')
	    || shExpMatch(url, '*.ile.u-psud.fr:*')
	    || shExpMatch(url, '*.emilie.u-psud.fr/*')
	    || shExpMatch(url, '*.emilie.u-psud.fr:*')
	    || shExpMatch(url, '*.olympe.u-psud.fr/*')
	    || shExpMatch(url, '*.olympe.u-psud.fr:*')
	    || shExpMatch(url, '*.aurore.u-psud.fr/*')
	    || shExpMatch(url, '*.aurore.u-psud.fr:*'))
	{
		return direct;
	}

	if(isPlainHostName(host)
	    || (host == "127.0.0.1"))
	{
		return direct;
	}


	return proxies;
}
